<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="css/common.css">
    <style>
        .register-container {
    width: 100%;
    height: calc(100% - 50px);

    /* 为了让 login-dialog 垂直水平居中, 使用弹性布局 */
    display: flex;
    justify-content: center;
    align-items: center;
}

.register-dialog {
    width: 500px;
    height: 350px;

    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
}

/* 登录标题 */
.register-dialog h3 {
    font-size: 24px;
    font-weight: 900;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 40px;
}

/* 针对每一行的样式 */
.row {
    height: 50px;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

/* 每一行的文字 */
.row span {
    font-size: 20px;
    width: 60px;
}

.row #Nusername {
    width: 350px;
    height: 40px;
    font-size: 20px;
    text-indent: 10px;
}

.row #Npassword1 {
    width: 350px;
    height: 40px;
    font-size: 20px;
    text-indent: 10px;
}
.row #Npassword2 {
    width: 350px;
    height: 40px;
    font-size: 20px;
    text-indent: 10px;
}

.row #register {
    width: 448px;
    height: 40px;
    color: white;
    background-color: rgb(63, 134, 63);
    text-align: center;
    /* 设置文字垂直居中 */
    line-height: 40px;
    /* 去掉按钮默认的边框 */
    border: none;
    border-radius: 10px;
    margin-top: 20px;
}

.row  #register:hover {
    background: rgb(103, 100, 100);
}

    </style>
</head>
<body>
    <!-- 注册页的版面 -->
    <div class="register-container">
        <!-- 登录对话框 -->
        <div class="register-dialog">
            <h3>注册</h3>
            <!-- 使用 form 包裹一下下列内容, 便于后续给服务器提交数据 -->
            <form action="register" method="post"  >
                <div class="row">
                    <span>新用户</span>
                    <input type="text" id="Nusername" name="Nusername">
                </div>
                <div class="row">
                    <span>新密码</span>
                    <input type="password" id="Npassword1" name="Npassword1">
                </div>
                <div class="row">
                    <span>确认密码</span>
                    <input type="password" id="Npassword2" name="Npassword2">
                </div>
                <div class="row">
                    <a href="login.html"><input type="submit" id="register" value="确认"></a>
                </div>
            </form>
        </div>
    </div>
</body>
</html>